"""mstor_server URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import re_path

from . import views

urlpatterns = [
    # http://127.0.0.1:8000/api/wx_user/wxuser
    # 用户api
    re_path(r"^wxuser(/)?$", views.WxUserView.as_view()),
    re_path(r"^wxuser/house(/)?$", views.WxUserHouseView.as_view()),
    re_path(r"^wxuser/house_bill(/)?$", views.WxHouseBillView.as_view()),
    re_path(r"^wxuser/recharge_order(/)?$", views.WxUserRechargeOrderView.as_view()),
    re_path(r"^wxuser/pay_callback(/)?$", views.WxUserPayCallBackView.as_view()),
    # 社区api
    re_path(r"^community(/)?$", views.WxCommunityView.as_view()),
    re_path(r"^community/building(/)?$", views.WxBuildingView.as_view()),
    re_path(r"^community/unit(/)?$", views.WxUnitView.as_view()),
    re_path(r"^community/house(/)?$", views.WxHouseView.as_view()),
]
